package thread.pool;

import java.util.concurrent.*;

/**
 * @program: rocsun
 * @description:
 * @author: yx.guo
 * @create: 2025-08-06 14:44
 **/
public class CustomExectutor {

    private Executor executor;

    public CustomExectutor() {
        this.executor = new ThreadPoolExecutor(8, 8, 30, TimeUnit.SECONDS,
                new LinkedBlockingDeque<>(200),
                new CustomThreadFactory("custom-pool", 5, false),
                new ThreadPoolExecutor.AbortPolicy());
    }


}
